<template>
  <view @click="handClick">
    <slot></slot>
  </view>
</template>

<script>
export default {
  props: {
    list: Array,
    index: Number
  },
  methods: {
    handClick() {
      getApp().globalData.imgList = this.list;
      getApp().globalData.imgIndex = this.index;
      console.log(this.list);
      console.log("组件godetail");
      uni.navigateTo({
          url:"/pages/imgDetail/index"
      });
    }
  },

};
</script>

<style>
</style>